import requests

if __name__ == '__main__':
    headers = {
        'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36'
    }
    url = 'https://pic.qiushibaike.com/system/pictures/12402/124023089/medium/LKXBH804S9CGWTHV.jpg'
    pic_data = requests.get(url,headers).content
    f = open('图片.jpg','wb')
    f.write(pic_data)
    f.close()
    print('爬取完毕！')